using Domain.Production_Modules;
using MediatR;
using ReturnValue;

namespace MES.Server.API.Application.Command.ApprovalProcess
{
    public class ApprovalPurchaseOrderCommand : IRequest<ApiResult<bool>>
    {
        /// <summary>
        /// 采购单ID
        /// </summary>
        public long PurchaseOrderId { get; set; }
        
        /// <summary>
        /// 审批结果（true：通过，false：驳回）
        /// </summary>
        public bool IsApproved { get; set; }
        
        /// <summary>
        /// 审批意见
        /// </summary>
        public string ApprovalComment { get; set; }
        
        /// <summary>
        /// 当前登录用户ID
        /// </summary>
        public long CurrentUserId { get; set; }
        
        /// <summary>
        /// 当前登录用户角色（如：人事、财务、董事长）
        /// </summary>
        public string CurrentUserRole { get; set; }
    }
}